package com.sinothk.gpserver.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sinothk.gpserver.modules.comm.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 好友邀请功能
 * </p>
 *
 * @author Liang Y.t.
 * @since 2021-09-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("biz_room_card_log")
@ApiModel(value="RoomCardLogEntity对象", description="好友邀请功能")
public class RoomCardLogEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "发放人Account")
    private String setAccount;

    @ApiModelProperty(value = "得到人Account")
    private String getAccount;

    @ApiModelProperty(value = "得到人姓名")
    private String getName;

    @ApiModelProperty(value = "邀请人头像")
    private String getAvatar;

    @ApiModelProperty(value = "交易量")
    private Integer getCards;
    @ApiModelProperty(value = "类型：0 发出；1 收回")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String setInfo;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除：0未删除;1删除;")
    @TableLogic
    private Integer deleted;


}
